home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 10
/
AACD 10.iso
/
AACD
/
Magazine
/
Online
/
httpproxy
/
checkrexx.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-08-20
|
429b
|
20 lines
/* check whether scripts are ARexx script. Returns 0 when all given scripts are ARexx-Scripts */
/* ARexx scripts have to start with a comment in the first line... */
parse arg AllArgs
do forever
parse VAR AllArgs File AllArgs
if File == "" then
leave
if (open("r",File,"READ") ~= 1) then
exit 20
line = readln("r")
call close("r")
if (index(strip(line),"/*") ~= 1) then
exit 1
end
exit 0